<?php

namespace app\common\validate;

use think\Validate;

class Invoice extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
	    'order_id' => 'require',
    	'name' => 'require',
	    'mobile' => 'require',
	    'address' => 'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
    	'order_id' => '开票订单不能为空',
	    'name' => '收件人不能为空',
	    'mobile' => '手机号码不能为空',
	    'address' => '收货地址不能为空'
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => [],
        'edit' => [],
    ];
    
}
